#include"heap.h"
int main()
{
	heap hp;
	heapinit(&hp, &(hp.a), 4);
	heappush(&hp, 1);
	heappush(&hp, 2);
	heappush(&hp, 3);
	heappush(&hp, 4);
	heappush(&hp, 5);
	heappush(&hp, 6);
	heappush(&hp, 7);
	heappush(&hp, 8);
	heappush(&hp, 9);
	int* a = getLeastNumbers(&hp, 3);
	for (int i = 0; i < 3; i++)
	{
		printf("%d ", a[i]);
	}
	return 0;
}